package com.idenger.modules.edu.entity.course;

import com.idenger.modules.edu.entity.exercisehistory.EduExerciseHistory;

import java.util.Date;

public class CourseVideoAndPracticeDto implements Comparable<CourseVideoAndPracticeDto> {

	private String id;
	private String name;
	private String title;
	private Date createDate;
	private String videoUrl;

	private String status;//是否观看

	private EduExerciseHistory eduExerciseHistory;//练习记录

	public EduExerciseHistory getEduExerciseHistory() {
		return eduExerciseHistory;
	}

	public void setEduExerciseHistory(EduExerciseHistory eduExerciseHistory) {
		this.eduExerciseHistory = eduExerciseHistory;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getVideoUrl() {
		return videoUrl;
	}
	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public CourseVideoAndPracticeDto(){}
	@Override
	public int compareTo(CourseVideoAndPracticeDto arg0) {
		 return this.getCreateDate().compareTo(arg0.getCreateDate());  
	}
}
